<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <p:dataGrid 
        id="tbProject" 
        columns="1" 
        var="project" 
        value="#{projectBackingBean.assignedProjects}" 
        emptyMessage="#{i18n['project.data.assigned.nofound']}" style="width: 300px"
        rows="4" paginator="true">
        <p:column>
            <table width="100%">
                <tr>
                     <td style="text-align: left">
                        <p:commandButton action ="#{codeGeneratorBackingBean.goGenerateProject(project)}" ajax="false" icon="ui-icon-gear"/>
                        <p:commandLink value="#{project.name}" action="#{projectBackingBean.goModifyProject(project)}" style="width: 100%" ajax ="false"/>
                    </td>
                </tr>
            </table>
        </p:column>
    </p:dataGrid>
    
</ui:composition>